package com.synjones.wschool.face.mapper;

import com.synjones.wschool.face.domain.FaceInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by 24398 on 2018/7/20.
 */
public interface FaceInfoMapper {
    FaceInfo getFaceInfo(@Param("userId") Long userId, @Param("userSourceId") Integer userSourceId);
    int deleteByPrimaryKey(Long id);

    int insert(FaceInfo record);

    int insertSelective(FaceInfo record);

    FaceInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FaceInfo record);

    int updateByPrimaryKey(FaceInfo record);

    List<FaceInfo> listFaceInfoByState(@Param("auditState") Integer checkState);

    void batchUpdate(@Param("list") List<FaceInfo> faceInfos);

    List<FaceInfo> listFaceInfo(@Param("list") List<Long> checkUserIds, @Param("userSourceId") Integer userSourceId);

    List<FaceInfo> listFaceInfoByDateAndState(@Param("afterDate") Date afterDate,@Param("list") List<Integer> userSourceIds,@Param("state") Byte state);
}
